package com.example.ruralservicedigitalplatform.domain.po;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "配送员实体")
public class DeliveryMan {
    @Schema(description = "配送员的唯一标识符")
    private Integer deliverymanId;

    @Schema(description = "配送员名字")
    private String name;


    @Schema(description = "密码")
    private String password;

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "配送员电话")
    private String phoneNumber;

    @Schema(description = "年龄")
    private int age;

    @Schema(description = "照片")
    private String image;

    @Schema(description = "身份证")
    private String idNumber;

    @Schema(description = "状态")
    private int status;

    @Schema(description = "平均配送时间")
    private double averageTime;

    @Schema(description = "总配送次数")
    private BigDecimal totalDeliveries;

    @Schema(description = "评分")
    private BigDecimal rating;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
